#ifndef PACKET_H_3e8a4e21_17f4_4d48_b54c_f5880c0704a6
#define PACKET_H_3e8a4e21_17f4_4d48_b54c_f5880c0704a6

/*
**
** Copyright (c) 2010 by Lorimark Solutions, LLC.
** All Rights Reserved.
** Send inquiries to: info@lorimarksolutions.com
**
*/

#define PACKET_DATA_SIZE 32

#include <evie-systems.h>

typedef struct PACKET_ERR_STRUCT
{
  uint8 count;
  uint8 length;
  uint8 crc;
} error_t;

typedef struct PACKET_STRUCT
{
//  error_t error;
  uint8 atn;
  uint8 dst;
  uint8 src;
  uint8 status;
  uint8 cmd;
  uint8 len;
  uint8 dat[PACKET_DATA_SIZE];
  uint8 crc;

} packet_t;

extern uint8 nodeID[];
extern packet_t packet;

uint8 rxNetworkPacket(void);

#endif // #ifndef PACKET_H_3e8a4e21_17f4_4d48_b54c_f5880c0704a6

